package com.hzf.order.rpc.service.impl;

import com.hzf.common.annotation.BaseService;
import com.hzf.common.base.BaseServiceImpl;
import com.hzf.order.dao.mapper.OrderCartMapper;
import com.hzf.order.dao.model.OrderCart;
import com.hzf.order.dao.model.OrderCartExample;
import com.hzf.order.rpc.api.OrderCartService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* OrderCartService实现
* Created by shuhzf on 2017/12/4.
*/
@Service
@Transactional
@BaseService
public class OrderCartServiceImpl extends BaseServiceImpl<OrderCartMapper, OrderCart, OrderCartExample> implements OrderCartService {

    private static Logger _log = LoggerFactory.getLogger(OrderCartServiceImpl.class);

    @Autowired
    OrderCartMapper orderCartMapper;

    public List<OrderCart> selectByGoodsParamKey (OrderCartExample orderCartExample){

        return  orderCartMapper.selectByGoodsPrimaryKey(orderCartExample);
    }
}